//导入vue包
import Vue from "vue"

//导入路由组件
import VueRouter from "vue-router"
Vue.use(VueRouter);

import Number from "./component/system/number.vue"
import Product from "./component/system/product.vue"
import Risk from "./component/system/risk.vue"
import Authentication from './component/operation/authentication.vue'
import Auto from './component/operation/auto.vue'
import Loan from './component/operation/loan.vue'
import operPerson from './component/operation/oprePerson.vue'
import autoApplyWait from './component/authen/authApplyWait.vue'
import autoApplyHistory from './component/authen/authApplyHistory.vue'
import loanApplyWait from './component/debit/loanApplyWait.vue'
import loanApplyHistory from './component/debit/loanApplyHistory.vue'


import financeOut from './component/finance/financeOut.vue'
import financeWait from './component/finance/financeWait.vue'
import financeIn from './component/finance/financeIn.vue'


import afterLoanWait from './component/after/afterLoanWait.vue'
import afterLoanHistory from './component/after/afterLoanHistory.vue'
import afterLoanErr from './component/after/afterLoanErr.vue'

import iCloud from './component/icloud/icloud.vue'

import icloudDetail from './component/icloud/icloudDetail.vue'
import authApplyDetail from './component/authen/authApplyDetail.vue'
import financeOutDetail from './component/finance/financeOutDetial.vue'
export default new VueRouter({
    routes: [

        { path: "/system-user", component: Number },

        { path: "/system-product-config", component: Product },
        { path: "/system-risk-config", component: Risk  },

        {path:"/operate-user",component:operPerson},
        {path:"/operate-auto-assign",component:Auto},
        {path:"/operate-assign-records",component:Authentication},
        {path:"/operate-assign-records-loan",component:Loan},


        {path:'/auth-apply-wait',component:autoApplyWait},
        {path:'/auth-apply-history',component:autoApplyHistory},
        {path:'/loan-apply-wait',component:loanApplyWait},
        {path:'/loan-apply-history',component:loanApplyHistory},
        
        {path:'/finance-wait',component:financeWait},
        {path:'/finance-out',component:financeOut},
        {path:'/finance-in',component:financeIn},
        {path:'/after-loan-wait',component:afterLoanWait},
        {path:'/after-loan-history',component:afterLoanHistory},
        {path:'/after-loan-error',component:afterLoanErr},
        
        {path:'/icloud-index',component:iCloud},
        {path:'/icloud-detail/:id',component:icloudDetail},
        {
            path:'/auth-apply-detail/:id',component:authApplyDetail
        },
        {path:'/finance-detail/:id',component:financeOutDetail}
        

    ]
})